import request from "@/api/request";
export const registerApi = (params) => {
  return request({
    url: "/api/user/register",
    method: "post",
    data: params,
  });
};

export const loginApi = (params) => {
  return request({
    url: "/api/user/login",
    method: "post",
    data: params,
  });
};

export const logoutApi = (params) => {
  return request({
    url: "/api/user/logout",
    method: "post",
    data: params,
  });
};

export const sendEmailApi = (params) => {
  return request({
    url: "/api/user/send-email",
    method: "post",
    data: params,
  });
};
export const verifyCaptchaApi = (params) => {
  return request({
    url: "/api/user/verify-captcha",
    method: "post",
    data: params,
  });
};
export const retrieveApi = (params) => {
  return request({
    url: "/api/user/forget_password",
    method: "post",
    data: params,
  });
};
export const changePasswordApi = (params) => {
  return request({
    url: "/api/user/change_password",
    method: "post",
    data: params,
  });
};
export const modifyApi = (params) => {
  return request({
    url: "/api/user/modify",
    method: "post",
    data: params,
  });
};
